package com.example.springbootdubboconsumer.sao;

import com.creative.client.CreativeCommandService;
import com.creative.dto.CreativeDTO;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

/**
 * @author chaird
 * @create 2023-07-23 21:17
 */
@Component
public class CreativeManager {


    @DubboReference(interfaceClass = CreativeCommandService.class, check = false)
    private CreativeCommandService creativeCommandService;


    public Integer addCreative(){
        CreativeDTO creativeDTO = new CreativeDTO();
        creativeDTO.setName("cbeann");
        Integer integer = creativeCommandService.creativeCreative(creativeDTO);
        return integer;

    }



}
